<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/22
 * Time: 1:01
 */

require_once "config.php";
require_once "MyPDO.class.php";
$db = MyPDO::getInstance($host, $user, $pass, $dbName, 'utf8');

$user      = $_GET['user'];
$adminInfo = $db->query("cooperation", "`user` = '$user'", "Row");

$sign = md5('jdh9lq' . $adminInfo['password'] . $user);

setcookie('user', $user, time() + 60 * 60 * 24 * 7, '/');
setcookie('sign', $sign, time() + 60 * 60 * 24 * 7,'/');

header("Location: http://jpvacuum.com/mdd");
